#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>

int i = 0;
int let = 0;
int bla = 0;
int dig = 0;
int oth = 0;
void StatCharCount(char str[])
{
	int len = strlen(str);
	for (i = 0; i<len ; i++)
	{
		if ('A' <= str[i] && str[i] <= 'Z' || 'a' <= str[i] && str[i] <= 'z')
		{
			let++;
		}
		else if (str[i] == ' '||str[i]=='\n')
		{
			bla++;
		}
		else if ('0' <= str[i] && str[i] <= '9')
		{
			dig++;
		}
		else
		{
			oth++;
		}
	}
}

int main()
{
	char str[100];
	gets(str);
	printf("%s\n",str);
	StatCharCount(str);
	printf("let=%d,bla=%d,dig=%d,oth=%d", let, bla, dig, oth);
	return 0;
}